
package com.yuhanginfo.modules.sys.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.dao.PayHistoryDao;
import com.yuhanginfo.modules.sys.entity.PayHistory;

/**
 * 交易历史Service
 * @author lvls
 * @version 2017-09-21
 */
@Service
@Transactional(readOnly = true)
public class PayHistoryService extends CrudService<PayHistoryDao, PayHistory> {

	@Autowired
	private PayHistoryDao payHistoryDao;
	

	
	@Transactional(readOnly = false)
	public void delete(PayHistory payHistory) {
		super.delete(payHistory);
	}

	public PayHistory getByPayCodeAndPayResult(String string, String code) {
		return payHistoryDao.getByPayCodeAndPayResult(string, code);
	}
	
}